package com.czy.cloudalibaba.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.czy.springcloud.entities.CommonResult;

/***
 * ***************************************
 * 功能描述:自定义流控兜底处理类
 * @author create: TODO 人员:【ChangZiYang】类型:【新增方法】日期:【2020-11-30 15:16】
 * @author modify:
 */
public class CustomerBlockHandler {

    public static CommonResult handlerException(BlockException exception) {
        return new CommonResult(4444, "按客戶自定义,global handlerException----1");
    }

    public static CommonResult handlerException2(BlockException exception) {
        return new CommonResult(4444, "按客戶自定义,global handlerException----2");
    }
}
